<template>
  <div>
    <el-date-picker
      v-model="value"
      type="date"
      :placeholder="placeholder"
      :format="format"
      :value-format="valueFormat"
      class="form-control"
      style="width: 60%">
    </el-date-picker>
  </div>
</template>

<script>
export default {
  props: {
    value: String,
    placeholder: String,
    format: {
      type: String,
      default: 'yyyy-MM-dd HH:mm:ss'
    },
    valueFormat: {
      type: String,
      default: 'yyyy-MM-dd HH:mm:ss'
    }
  }
}
</script>
